package lab02.test35;

public class Test {

    public static void main(String[] args) {

        Manager m=new Manager("张三",10000);
        Salesman s=new Salesman("李四",3000,50,80);
        Worker w=new Worker("王五",28,200);

        System.out.println(m.getName()+"经理的工资为："+m.computeSalary());
        System.out.println(s.getName()+"销售人员的工资为："+s.computeSalary());
        System.out.println(w.getName()+"工人的工资为："+w.computeSalary());

    }
}
